package com.fingard.dsp.bank.reqrespobj.elecbilltrans;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.dsp.bank.reqrespobj.elecbilltrans.detail.ReqB110BillRecoSubmitDetail;
import com.fingard.xml.XmlTextReader;

/**
 * Created by dell on 2017/10/1.
 */
public class ReqB110BillRecoSubmit extends RequestBase {
    public ReqB110BillRecoSubmitDetail detail;
    private XmlTextReader xmlReader;

    public boolean readRecord() throws Exception {
        detail = null;
        if (xmlReader.read(PATH_Detail)) {
            detail = new ReqB110BillRecoSubmitDetail(xmlReader.readedXElement);
            return true;
        } else {
            return false;
        }
    }

    public ReqB110BillRecoSubmit(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;
        xmlReader = p_xmlReader;
    }
}
